#!/usr/bin/env bash
set -e
mkdir -p /opt/tmp/

name="gradle"
wget https://downloads.gradle.org/distributions/gradle-3.2.1-all.zip
unzip gradle-3.2.1-all.zip
mv gradle-3.2.1 /opt/gradle
mv gradle-3.2.1-all.zip /opt/tmp

echo -e "export GRADLE_HOME=/opt/gradle\nexport PATH=\$GRADLE_HOME/bin:\$PATH">>/etc/profile
